<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
	a{
		text-decoration: none;
	}
	a:visited {
		
		color: #0000EE;
	}
	table{
	background-color:#c7dff6;
	}
	</style>
	<style type="text/css">
	body{
		background: url("show/images/orpate.png");
		background-repeat: no-repeat;
		background-position: 100% 0;
	}

</style>
</head>
<body>
<div>
<div align="center">
	<form action="UpdateLinkServlet" method="post">
		<table border="1">
		<caption><b>修改链接</b></caption>
			<tr>
				<td>ID</td>
				<td><input type="text" name="id" value="${link.id }" required="required" readonly></td>
			</tr>
			<tr>
				<td>链接描述</td>
				<td><input type="text" name="lkname" value="${link.lkname }" required="required"></td>
			</tr>
			<tr>
				<td>链接地址</td>
				<td><input type="text" name="lkplace" value="${link.lkplace }" required="required"></td>
			</tr>
			<tr>
				<td>存放位置</td>
				<td><select name="splace" >
	      				<option value="${link.splace }">${link.splace }</option>
		                <c:if test="${link.splace !='底部' }"><option value="底部">底部</option></c:if>
		                <c:if test="${link.splace !='顶部' }"><option value="顶部">顶部</option></c:if>
            	</select></td>
			</tr>
			<tr>
				<td colspan="2" align="center">
					<input type="submit" value="修改">
<!-- 				<a href="../ListLinkServlet"><input type=button value="返回"> -->
				</td>
			</tr>
		</table>
	</form>
	</div>
</div>
</body>
</html>